for a= 1,10   ---for var = begin, finish, step do
do
    print(a)
end


for a= 1,10,2   ---for var = begin, finish, step do
do
    print(a)
end

-- 打印数组a的所有值
local a = {"a", "b", "c", "d"}
for i, v in ipairs(a) do
    print("index:", i, " value:", v)
end